<!--#include file="../nav/admin_top.php" -->  
<script type="text/javascript">
var url_save = '/admin_page/modify'; 
var url_return = '/admin_page/index';   
$().ready(function(){  
	showLoading();   
  $('#name').focus();
}); 
/* 保存 */
function fnSave(){
	/* 3邮件内容 */
	var form = {
		id:$.trim($('#id').val()),
		content:encodeURIComponent(FCKeditorAPI.GetInstance('html_content').GetXHTML()) 
	};
	$.ajax({
		async:true,
		type:'post',
		url:url_save,
		data:{
			form:JSON.encode(form) 
		},
		success:function(e){
  		$('button').attr('disabled','');
			var ok = errorHandler(e);
			if(ok){　 
				jumpTo(url_return);
			}
		}
	}); 
}

/* 内容框变高变矮 */
function fnAddHeight(){
	var nowh = parseInt($('#html_content___Frame').css('height'),10);
	nowh += 50;
	$('#html_content___Frame').css('height',nowh+'px');
} 
function fnLowerHeight(){
	var nowh = parseInt($('#html_content___Frame').css('height'),10);
	if(nowh<=400) return;
	nowh -= 50;
	$('#html_content___Frame').css('height',nowh+'px');
}
</script>
<div class="titleDiv">
	<div class="titleCaption">
		<span class="captionSpan">单页信息管理 - 修改信息</span>
		<span class="totalSpan"> <label id="captionNum"></label> </span>
	</div>
</div> 　 
<form id="myform" action="" method="post"  onsubmit="return false" >   	
<div  class="button_div">
		<button class="btn_save" onclick="fnSave()">保 存</button>
		<span class="gray">或</span> 
		<button class=" " onclick="jumpTo(url_return)">返 回</button>
</div>  
<input type="hidden" id="id" name="id" value="{$rs.id}" />
<table class="mytable" >
	<tr>
		<td class="mylabel">页面标题：</td>
		<td class="myinfo" > 
			 {$rs.title} 
		</td>  
	</tr>
	<tr>   
		<td class="mylabel">内容：</td>
		<td class="myinfo" > 
			<input type="hidden" id="html_content" name="html_content" value="{$rs.content}" style="display:none" /> 
			<div style="width:700px;">
				<iframe id="html_content___Frame" src="/fckeditor/editor/fckeditor.html?InstanceName=html_content&amp;Toolbar=Pen" width="100%" height="500" frameborder="0" scrolling="no"></iframe>
			</div>	
		</td>  
	</tr>
</table>    	
<div  class="button_div">
		<button class="btn_save" onclick="fnSave()">保 存</button>
		<span class="gray">或</span> 
		<button class=" " onclick="jumpTo(url_return)">返 回</button>
</div>  
</form>		
<!--#include file="../nav/admin_bottom.php" -->